#include "Head/error.h"
#include <unistd.h> // pid_t fork(void);
#include <sys/types.h> // pid_t wait(int *status)

int main(int argc, char * argv[]) {
	pid_t pid;

	pid = fork();

	if(pid == 0) {
		fprintf(stdout, "I'm %d's son, my pid is %d\n", getppid(), getpid());
	}
	else {
		fprintf(stdout, "My son pid: %d\n", pid);
		fprintf(stdout, "As parent, my pid is %d\n", getpid());
	}

	return 0;
}
